//2009/07/25 17:42:41
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>

using namespace std;

class ExerciseMachine
{
public:
    int getPercentages(string time)
    {
		int score = 0;
		int workout = convertStringToInteger(time.substr(0,2));
		workout = workout*60 + convertStringToInteger(time.substr(3,2));
		workout = workout*60 + convertStringToInteger(time.substr(6,2));
		for(int i=1; i<100; i++)
		{
			if(i*workout%100 == 0)
				score++;
		}
		return score;
    }
private:
    int convertStringToInteger(string s)
    {
        stringstream ss(s);
        int number;
        ss >> number;
        return number;
    }
};
